|
usbcpower2 2.2.0
|
This file contains API for USB-C Power 2 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | usbcpower2_t |
| USB-C Power 2 Click context object. More... | |
| struct | usbcpower2_cfg_t |
| USB-C Power 2 Click configuration object. More... | |
Enumerations | |
| enum | usbcpower2_return_value_t { USBCPOWER2_OK = 0 , USBCPOWER2_ERROR = -1 } |
| USB-C Power 2 Click return value data. More... | |
Functions | |
| void | usbcpower2_cfg_setup (usbcpower2_cfg_t *cfg) |
| USB-C Power 2 configuration object setup function. | |
| err_t | usbcpower2_init (usbcpower2_t *ctx, usbcpower2_cfg_t *cfg) |
| USB-C Power 2 initialization function. | |
| err_t | usbcpower2_default_cfg (usbcpower2_t *ctx) |
| USB-C Power 2 default configuration function. | |
| err_t | usbcpower2_write_reg (usbcpower2_t *ctx, uint8_t reg, uint8_t data_in) |
| USB-C Power 2 write register function. | |
| err_t | usbcpower2_read_reg (usbcpower2_t *ctx, uint8_t reg, uint8_t *data_out) |
| USB-C Power 2 read register function. | |
| uint8_t | usbcpower2_get_id_pin (usbcpower2_t *ctx) |
| USB-C Power 2 get ID pin function. | |
| uint8_t | usbcpower2_get_int_pin (usbcpower2_t *ctx) |
| USB-C Power 2 get INT pin function. | |
| err_t | usbcpower2_check_com (usbcpower2_t *ctx) |
| USB-C Power 2 communication check function. | |
This file contains API for USB-C Power 2 Click Driver.